package Practice05.test7;

public class Queue implements Access{
    String string;
    public Queue() {
        string="";
    }

    @Override
    public char get() {
        char s = string.charAt(0);
        string = string.substring(1);
        return s;
    }

    @Override
    public void put(char c) {
        string = c + string;
    }
}
